package cn.iocoder.yudao.module.security.controller.admin.device.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import java.util.*;
import java.math.BigDecimal;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;

@Schema(description = "管理后台 - 设备接入 Response VO")
@Data
@ExcelIgnoreUnannotated
public class SecurityDeviceRespVO {

    @Schema(description = "资产ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "4344")
    @ExcelProperty("资产ID")
    private Long id;

    @Schema(description = "IP地址")
    @ExcelProperty("IP地址")
    private String ipAddress;

    @Schema(description = "MAC地址")
    @ExcelProperty("MAC地址")
    private String macAddress;

    @Schema(description = "设备来源", example = "1")
    @ExcelProperty("设备来源")
    private String sourceType;

    @Schema(description = "最后接入时间")
    @ExcelProperty("最后接入时间")
    private LocalDateTime lastOnlineTime;

    @Schema(description = "最后离线时间")
    @ExcelProperty("最后离线时间")
    private LocalDateTime lastOfflineTime;

    @Schema(description = "接入总时长")
    @ExcelProperty("接入总时长")
    private BigDecimal onlineHour;

    @Schema(description = "设备状态", example = "1")
    @ExcelProperty("设备状态")
    private String deviceStatus;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

    @Schema(description = "设备用户名", example = "赵六")
    @ExcelProperty("设备用户名")
    private String deviceUsername;

    @Schema(description = "设备密码")
    @ExcelProperty("设备密码")
    private String devicePassword;

    @Schema(description = "CPU使用率")
    @ExcelProperty("CPU使用率")
    private BigDecimal deviceCpu;

    @Schema(description = "内存使用率")
    @ExcelProperty("内存使用率")
    private BigDecimal deviceMemory;

    @Schema(description = "磁盘")
    @ExcelProperty("磁盘")
    private BigDecimal deviceDisk;

    @Schema(description = "设备别名")
    @ExcelProperty("设备别名")
    private String deviceAlias;

    @Schema(description = "设备位置")
    @ExcelProperty("设备位置")
    private String deviceLocation;

}